package com.cyzy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyzy.pojo.Driver;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DriverMapper extends BaseMapper<Driver> {
    @Select("select car_model_id from vehicle where driver_id=#{driverId}")
    int selectDriverType(int driverId);

    List<Driver> selectDriverList(@Param("typeList") List<Integer> typeList);

    Driver getDriverByOrderId(@Param("orderId") String orderId);
}
